package com.sjq.demo.service.impl;

import com.sjq.demo.entity.TestGz;
import com.sjq.demo.mapper.TestGzMapper;
import com.sjq.demo.service.TestGzService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 工资表 服务实现类
 * </p>
 *
 * @author yer
 * @since 2020-12-24
 */
@Service
public class TestGzServiceImpl extends ServiceImpl<TestGzMapper, TestGz> implements TestGzService {

    @Override
    public void addGz(int glid) {
        TestGz gz = TestGz.builder()
                .bygz(8722.2f)
                .cqts("3")
                .glId(glid).build();
        getBaseMapper().insert(gz);
    }

    @Override
    public void test() {
        getBaseMapper().getTest();
    }
}
